package org.jeecg.modules.performance.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.performance.Model.PerformanceDetailModel;
import org.jeecg.modules.performance.entity.PerformanceMonthTaskDetail;
import org.jeecg.modules.performance.mapper.PerformanceMonthTaskDetailMapper;
import org.jeecg.modules.performance.service.IPerformanceMonthTaskDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: performance
 * @Author: jeecg-boot
 * @Date:   2021-05-18
 * @Version: V1.0
 */
@Service
public class PerformanceMonthTaskDetailServiceImpl extends ServiceImpl<PerformanceMonthTaskDetailMapper, PerformanceMonthTaskDetail> implements IPerformanceMonthTaskDetailService {

    @Autowired
    private PerformanceMonthTaskDetailMapper performanceMonthTaskDetailMapper;
    @Override
    public Page<PerformanceDetailModel> getList(Page<PerformanceDetailModel> page, String userId, String detailId) {
        List<PerformanceDetailModel> perforMonthTaskDetailList = performanceMonthTaskDetailMapper.getPerforMonthTaskDetailList(page, userId, detailId);
        return page.setRecords(perforMonthTaskDetailList);

    }
}
